<?php
class Model_Guestbook extends CI_Model  {
	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
	
	function insert_entry($data)
    {
        $this->db->insert('guestbook', $data);
    }
	
	function get_entry()
    {
		$query=$this->db->get("guestbook");
		return $query;
	}
}